package com.anhua.demo.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

@Data
@Resource
public class Student {
    @Autowired
    private Home home;

    private String name;
    private int age;

public void stu(){
   home.hom();
    System.out.println("00000000");
}
}
